﻿using System;
using System.Collections.Generic;

namespace ZSZ.Core.Entities
{
    public class AdminUserEntity:BaseEntity
    {
        public string Name { get; set; }
        public string PhoneNum { get; set; }
        public string PasswordHash { get; set; }
        public string PasswordSalt { get; set; }
        public string Email { get; set; }
        public long? CityId { get; set; }

        public virtual CityEntity City { get; set; }

        public int LoginErrorTimes { get; set; }
        public DateTime? LastLoginErrorDateTime { get; set; }

        public virtual ICollection<AdminUserRoleEntity> AdminUserRoles { get; set; } = new List<AdminUserRoleEntity>();
    }
}
